package com.zg.job.service;

import com.zg.common.core.dao.system.SysJob;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.springframework.stereotype.Component;

/**
 * 自定义任务
 * @author Zxb
 */
@Component
@Slf4j
public class DiyJob implements Job{

	@Override
	@SneakyThrows
	public void execute(JobExecutionContext context) {
		SysJob job = (SysJob) context.getMergedJobDataMap().get("job");
		//System.out.println("=====》"+job.getUri());
	}
}
